/**
 *
 * @author lty
 */
public class CarProxy implements Vehicle {
    private Car car;

    public CarProxy(Car car) {
        this.car = car;
    }

    @Override
    public void rent() {
        System.out.println("提供了车辆信息");
        car.rent();
        System.out.println("收取了押金");
    }
}
